/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ui;

import com.example.vaadin.MyApplication;
import com.vaadin.event.ItemClickEvent.ItemClickListener;
import com.vaadin.ui.Tree;

/**
 *
 * @author Kamil
 */
public class NavigationTree extends Tree {

    public static final Object SHOW_ALL = "Show all";
    public static final Object SEARCH = "Search";

    public NavigationTree(MyApplication app) {
        addItem(SHOW_ALL);
        addItem(SEARCH);
        addListener((ItemClickListener) app);
        setSelectable(true);
        setNullSelectionAllowed(false);
    }
}
